package com.jintu.portal.pojo.fingerprint;

import com.jintu.portal.pojo.RetEntity;
import lombok.Data;

/**
 * @author very
 */
@Data
public class FingerResponse {

    private String retCode;
    private String retMessage;

    public static FingerResponse build(RetEntity retEntity){
        FingerResponse response = new FingerResponse();
        response.setRetCode(retEntity.getCode());
        response.setRetMessage(retEntity.getMessage());
        return response;
    }

    public void setRetEntity(RetEntity retEntity){
        this.retCode = retEntity.getCode();
        this.retMessage = retEntity.getMessage();
    }
}
